home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Tele / A / AT&T CCL.sit / AT&T CCL / AT&T Paradyne Comsphere 3810 next >
Encoding:
Text File  |  1993-02-12  |  3.1 KB  |  199 lines  |  [mlts/slnk]

  1. ! "AT&T Paradyne Comsphere 3810 Modem 2/12/93" Pete Thornewell
  2. ! Adapted from the "Hayes Smartmodem 2400 - 8/19/91" 
  3. !
  4. @ORIGINATE
  5. @ANSWER
  6. !
  7. @LABEL 1
  8. serreset 57600, 0, 8, 1
  9. !
  10. ! first recall the factory configuration
  11. !
  12. matchclr
  13. settries 0
  14. matchstr 1 3 "OK\13\10"
  15. @LABEL 2
  16. write "AT&F\13"
  17. matchread 30
  18. inctries
  19. iftries 2 59
  20. jump 2
  21. !
  22. ! Next, Set up the configuration: Echo off
  23. !
  24. @LABEL 3
  25. matchstr 1 4 "OK\13\10"
  26. pause 5
  27. write "ATE0\13"
  28. matchread 30
  29. jump 59
  30. !
  31. ! Next, DTR transition causes hangup and reset
  32. !
  33. @LABEL 4
  34. matchstr 1 5 "OK\13\10"
  35. matchstr 2 5 "ERROR\13\10"
  36. write "AT&D0\13"
  37. matchread 30
  38. !
  39. ! If speaker on flag is true, jump to label 8.  Else turn off the speaker
  40. !
  41. @LABEL 5
  42. matchclr
  43. ifstr 2 8 "1"
  44. matchstr 1 8 "OK\13\10"
  45. write "ATM0\13"
  46. matchread 30
  47. jump 59
  48. !
  49. ! The modem is ready.  So enable answering, or originate a call
  50. !
  51. @LABEL 8
  52. ifANSWER 30
  53. note "Dialing ^1" 3
  54. write "ATS0=0DT^1\13"
  55. !
  56. @LABEL 9
  57. matchstr  1 11 "CONNECT 1200\13\10"
  58. matchstr  2 12 "CONNECT 2400\13\10"
  59. matchstr  3 13 "CONNECT 4800\13\10"
  60. matchstr  4 14 "CONNECT 9600\13\10"
  61. matchstr  5 15 "CONNECT 14400\13\10"
  62. matchstr  6 50 "NO CARRIER\13\10"
  63. matchstr  7 50 "ERROR\13\10"
  64. matchstr  8 52 "NO DIALTONE\13\10"
  65. matchstr  9 53 "BUSY\13\10"
  66. matchstr  10 54 "NO ANSWER\13\10"
  67. matchread 700
  68. jump 59
  69. !
  70. @LABEL 11
  71. note "Communicating at 1200 bps." 2
  72. CommunicatingAt 1200
  73. jump 16
  74. !
  75. @LABEL 12
  76. note "Communicating at 2400 bps." 2
  77. CommunicatingAt 2400
  78. jump 16
  79. !
  80. @LABEL 13
  81. note "Communicating at 4800 bps." 2
  82. CommunicatingAt 4800
  83. jump 16
  84. !
  85. @LABEL 14
  86. note "Communicating at 9600 bps." 2
  87. CommunicatingAt 9600
  88. jump 16
  89. !
  90. @LABEL 15
  91. note "Communicating at 14400 bps." 2
  92. CommunicatingAt 14400
  93. jump 16
  94. !
  95. @LABEL 16
  96. ifANSWER 17
  97. pause 30
  98. @LABEL 17
  99. exit 0
  100. !
  101. ! @ANSWER
  102. ! Set up the modem to answer
  103. @LABEL 30
  104. pause 5
  105. write "ATS0=1\13"
  106. matchstr 1 31 "OK\13\10"
  107. matchread 30
  108. jump 59
  109. !
  110. @LABEL 31
  111. matchstr 1  32 "RING\13\10"
  112. matchstr 2  11 "CONNECT 1200\13\10"
  113. matchstr 3  12 "CONNECT 2400\13\10"
  114. matchstr 4 13 "CONNECT 4800\13\10"
  115. matchstr 5 14 "CONNECT 9600\13\10"
  116. matchstr 6 15 "CONNECT 14400\13\10"
  117. matchstr 7  50 "NO CARRIER\13\10"
  118. matchstr 8  50 "ERROR\13\10"
  119. matchstr 9  52 "NO DIALTONE\13\10"
  120. matchstr 10  53 "BUSY\13\10"
  121. matchstr 11  54 "NO ANSWER\13\10"
  122. matchread 700
  123. jump 31
  124. !
  125. @LABEL 32
  126. userhook 1
  127. note "Answering phone…" 2
  128. jump 31
  129. !
  130. ! 50: error messages
  131. !
  132. @LABEL 50
  133. exit -6021
  134. !
  135. @LABEL 52
  136. exit -6020
  137. !
  138. @LABEL 53
  139. exit -6022
  140. !
  141. @LABEL 54
  142. exit -6023
  143. !
  144. @LABEL 59
  145. exit -6019
  146. !
  147. ! Hang up the modem
  148. !
  149. @HANGUP
  150. @LABEL 60
  151. settries 0
  152. @LABEL 61
  153. write "ATH0\13"
  154. matchclr
  155. matchstr 1 64 "OK\13\10"
  156. matchstr 2 63 "NO CARRIER\13\10"
  157. matchstr 3 64 "ERROR\13\10"
  158. matchread 15
  159. inctries
  160. iftries 3 64
  161. ! no response, try escape sequence
  162. write "+++"
  163. matchclr
  164. matchstr 1 62 "OK\13\10"
  165. matchread 18
  166. ! No response from modem, toggle DTR
  167. !
  168. DTRClear
  169. pause 10
  170. DTRSet
  171. jump 61
  172. !
  173. @LABEL 62
  174. matchclr
  175. matchstr 1 64 "OK\13\10"
  176. matchstr 2 63 "NO CARRIER\13\10"
  177. write "ATH0\13"
  178. matchread 50
  179. jump 61
  180. !
  181. @LABEL 63
  182. pause 45
  183. flush
  184. !
  185. ! Recall the factory settings
  186. !
  187. @LABEL 64
  188. matchclr
  189. matchstr 1 65 "OK\13\10"
  190. write "AT&F\13"
  191. matchread 30
  192. !
  193. @LABEL 65
  194. matchstr 1 66 "OK\13\10"
  195. write "ATS0=0\13"
  196. matchread 30
  197. !
  198. @LABEL 66
  199. exit 0